package cn.tedu.csms.product.pojo.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class Product {
    @ApiModelProperty(value = "商品id")
    private  Long id;
    @ApiModelProperty(value = "商品名称")
    private String  goodsName;
    @ApiModelProperty(value = "产地")
    private  String origin;
    @ApiModelProperty(value = "产地类型")
    private  String typeOrigin;

    @ApiModelProperty(value = "生产日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private  Date productionDate;

    @ApiModelProperty(value = "保质时长 天")
    private  String warrantyPeriod;
    @ApiModelProperty(value = "商品所属类别")
    private String goodsType;
    @ApiModelProperty(value = "图片地址")
    private  String imgUrl;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private  Date createTime;
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private  Date updateTime;
    @ApiModelProperty(value = "商品等级")
    private  String goodsGrad;
    @ApiModelProperty(value = "商品规格")
    private  String specification;
    @ApiModelProperty(value = "描述")
    private  String comments;



}
